const fs = require('fs')
fs.readFile('./素材/成绩.txt', (err, data) => {
  if (err) console.log('读取失败' + err.message)
  else {
    const dataObj = data.toString()
    const str = dataObj.replace(/=/g, '：')
    const arr = str.split(' ')
    fs.writeFile('./成绩-ok.txt', arr.join('\n'), err => {
      if (err) console.log('写入失败' + err.message)
      else {
        console.log('写入成绩成功！')
      }
    })
  }
})